#include"CPoint.h"

#define pi 3.14
Rectangle::Rectangle(float xx, float yy, float w, float h):Point(xx,yy)
{
	width = w;
	high = h;
}

float Rectangle::Area()
{
	return width * high;
}

Circle::Circle(float xx, float yy, float r) :Point(xx, yy)
{
	radius = r;
}

float Circle::Area()
{
	return pi * radius * radius;
}
//
//
//
// 
// 只复制上面的内容
// 
// 
//
int main()
{
	Rectangle rect(1, 2, 3, 4);
	cout<<rect.Area();     //12
	Circle c(5, 6, 7);
	cout<<c.Area();      //153.86
}